package com.bdmc.task.domain.vo;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.annotation.ExcelDictFormat;
import com.bdmc.common.convert.ExcelDictConvert;
import lombok.Data;

/**
 * 每日排班详情视图对象 task_plan_detail
 *
 * @author bdmc
 * @date 2022-03-06
 */
@Data
@ExcelIgnoreUnannotated
public class TaskPlanDetailVo {

	private static final long serialVersionUID = 1L;

    /**
     * 计划详情id
     */
	@ExcelProperty(value = "计划详情id")
	private Long planDetailId;

    /**
     * 排班计划id（父表id）
     */
	@ExcelProperty(value = "排班计划id", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "父=表id")
	private Long workPlanId;

    /**
     * 生效日期
     */
	@ExcelProperty(value = "生效日期")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private LocalDate effectDate;

    /**
     * 班组id
     */
	@ExcelProperty(value = "班组id")
	private Long workTeamId;

    /**
     * 状态，1=正常，2休假，3=请假
     */
	@ExcelProperty(value = "状态，1=正常，2休假，3=请假")
	private Integer detailStatus;

	private String spanDetail;

	private Integer enabled;
}
